export interface LoginEntity {
  account: string;
  password: string;
}
export class FindLimitDto {
  pageNum?: number = 1;
  pageSize?: number = 10;
  sortBy?: {
    [key: string]: "DESC" | "ASC";
  };
}

export type FindList<T> = {
  list: T[];
  count: number;
};

export interface hitokotType {
  id: number;
  uuid: string;
  hitokoto: string;
  type: string;
  from: string;
  from_who: string;
  creator: string;
  creator_uid: string;
  reviewer: number;
  commit_from: string;
  created_at: string;
  length: number;
}

export const getHitokot = () => {
  return useFetch<hitokotType>("https://v1.hitokoto.cn", {
    method: "GET",
  });
};
